package com.mori.algorithm;

/**
 * <p> 提取整数中每个数字 </p>
 *
 * @author mori
 * @since 10/22/2019 4:55 PM
 */
public class CollectEveryNumber {
    public static void main(String[] args) {
        Integer number = 98645;
        String str = String.valueOf(number);
        for (char c : str.toCharArray()) {
            System.out.print(c+" ");
        }
    }
}
